DX11 WRAP

Wraps the specified number around so that it fits in the given range.
For example, calling this with the value 150, minimum value 1 and maximum value 100 would result in 50 being returned.

  Syntax
Return Float = DX11 WRAP(value, min, max)
  Parameters
value
Float
The value to be wrapped in the given range.
min
Float
The minimum value in the range.
max
Float
The maximum value in the range.

  Returns

The value wrapped to the given range.

  See also

MATH Functions Menu
DX11 Function Categories